package com.xm.shop.service.impl;

import com.xm.shop.mapper.ItemMapper;
import com.xm.shop.pojo.entity.Item;
import com.xm.shop.pojo.qo.ItemAddQO;
import com.xm.shop.service.ItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ludi
 * @date:2020/9/1 10:59
 * @description:购物车转订单业务
 */
@Service
public class ItemServiceImpl implements ItemService {
    @Autowired
    private ItemMapper itemMapper;
    @Override
    public Integer addItem(ItemAddQO itemAddQO) {
        return itemMapper.addItem(itemAddQO);
    }

    @Override
    public List<Item> selectByOrderId(Integer orderId) {
        return itemMapper.selectByOrderId(orderId);
    }
}
